﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="report.aspx.cs" Inherits="Trangtrai.report.report"
    MasterPageFile="~/SiteMaster.Master" %>
<%@ Register Assembly="DevExpress.XtraCharts.v11.1.Web, Version=11.1.8.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.XtraCharts.Web" TagPrefix="dxchartsui" %>
<%@ Register Assembly="DevExpress.Web.ASPxGridView.v11.1, Version=11.1.8.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxGridView" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.ASPxEditors.v11.1, Version=11.1.8.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.XtraCharts.v11.1, Version=11.1.8.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.XtraCharts" TagPrefix="cc1" %>
<asp:Content ID="Content1" runat="server" ContentPlaceHolderID="ContentPlaceHolder1">

    <script type="text/javascript">
    
    </script>
    
    <center>
        <table width="960px">
            <tr>
                <td bgcolor="#94B6EF" align="center" colspan="7">
                    <dx:ASPxLabel ID="ASPxLabel1" runat="server" Text="BÁO CÁO LƯỢNG THỨC ĂN">
                    </dx:ASPxLabel>
                </td>
            </tr>
            <tr>
                <td class="style5">
                    <br />
                </td>
            </tr>
            <tr>
                <td class="style5">
                    <dx:ASPxLabel Text="Mã ao" runat="server">
                    </dx:ASPxLabel>
                </td>
                <td class="style3">
                    <dx:ASPxComboBox ID="cbAoCode" runat="server" Width="170px" TextField="aoCode" ValueField="aoId"
                        ValueType="System.Int32" CssFilePath="~/App_Themes/Office2003Blue/{0}/styles.css"
                        CssPostfix="Office2003Blue" ClientInstanceName="cbAoCode" SpriteCssFilePath="~/App_Themes/Office2003Blue/{0}/sprite.css">
                        <LoadingPanelImage Url="~/App_Themes/Office2003Blue/Web/Loading.gif">
                        </LoadingPanelImage>
                        <ButtonStyle Width="13px">
                        </ButtonStyle>
                    </dx:ASPxComboBox>
                </td>
                <td class="style4">
                    <dx:ASPxLabel Text="Mùa vụ" runat="server">
                    </dx:ASPxLabel>
                </td>
                <td>
                    <dx:ASPxComboBox ID="cbSeason" runat="server" Width="170px" TextField="seasonName"
                        ValueField="seasonId" ValueType="System.Int32" CssFilePath="~/App_Themes/Office2003Blue/{0}/styles.css"
                        CssPostfix="Office2003Blue" ClientInstanceName="cbAoCode" SpriteCssFilePath="~/App_Themes/Office2003Blue/{0}/sprite.css">
                        <LoadingPanelImage Url="~/App_Themes/Office2003Blue/Web/Loading.gif">
                        </LoadingPanelImage>
                        <ButtonStyle Width="13px">
                        </ButtonStyle>
                    </dx:ASPxComboBox>
                </td>
                <td>
                    <dx:ASPxLabel runat="server" Text="Đến ngày">
                    </dx:ASPxLabel>
                </td>
                <td>
                    <dx:ASPxDateEdit ID="toDate" runat="server">
                    </dx:ASPxDateEdit>
                </td>
                <td>
                    <dx:ASPxButton Text="Tìm kiếm" runat="server" ID="btnsearch" CssFilePath="~/App_Themes/SoftOrange/{0}/styles.css"
                        CssPostfix="SoftOrange" SpriteCssFilePath="~/App_Themes/SoftOrange/{0}/sprite.css"
                        OnClick="btnsearch_Click" AutoPostBack="true">
                    </dx:ASPxButton>
                </td>
            </tr>
            <tr>
                <td class="style1" colspan="7">
                    <dx:ASPxGridView ID="grid" ClientInstanceName="grid" runat="server" OnCustomUnboundColumnData="grid_CustomUnboundColumnData"
                        Width="960px" CssFilePath="~/App_Themes/Office2003Blue/{0}/styles.css" CssPostfix="Office2003Blue">
                        <ImagesFilterControl>
                            <LoadingPanel Url="~/App_Themes/Office2003Blue/Editors/Loading.gif">
                            </LoadingPanel>
                        </ImagesFilterControl>
                        <Images SpriteCssFilePath="~/App_Themes/Office2003Blue/{0}/sprite.css">
                            <LoadingPanelOnStatusBar Url="~/App_Themes/Office2003Blue/GridView/gvLoadingOnStatusBar.gif">
                            </LoadingPanelOnStatusBar>
                            <LoadingPanel Url="~/App_Themes/Office2003Blue/GridView/Loading.gif">
                            </LoadingPanel>
                        </Images>
                        <Styles CssFilePath="~/App_Themes/Office2003Blue/{0}/styles.css" CssPostfix="Office2003Blue">
                            <Header ImageSpacing="5px" SortingImageSpacing="5px">
                            </Header>
                            <LoadingPanel ImageSpacing="10px">
                            </LoadingPanel>
                        </Styles>
                        <Columns>
                            <dx:GridViewDataDateColumn FieldName="createdDate" VisibleIndex="0" Caption="Ngày cho ăn" />
                            <dx:GridViewDataColumn FieldName="foodCode" VisibleIndex="1" GroupIndex="0" Caption="Mã thức ăn" />
                            <dx:GridViewDataColumn FieldName="tomAge" VisibleIndex="3" Caption="Ngày tuổi" />
                            <dx:GridViewDataColumn FieldName="actualValue" VisibleIndex="4" Caption="Thực tế" />
                            <dx:GridViewDataColumn FieldName="samValue" VisibleIndex="5" Caption="Theo mẫu" />
                            <dx:GridViewDataColumn FieldName="standardValue" VisibleIndex="6" Caption="Theo chuẩn" />
                            <dx:GridViewDataTextColumn FieldName="Total" VisibleIndex="7" UnboundType="Decimal">
                                <PropertiesTextEdit DisplayFormatString="#.##" />
                            </dx:GridViewDataTextColumn>
                        </Columns>
                        <Settings ShowGroupPanel="true" />
                        <GroupSummary>
                            <dx:ASPxSummaryItem FieldName="Total" SummaryType="Sum" />
                            <dx:ASPxSummaryItem FieldName="foodName" SummaryType="Count" />
                        </GroupSummary>
                        <StylesEditors>
                            <ProgressBar Height="25px">
                            </ProgressBar>
                        </StylesEditors>
                    </dx:ASPxGridView>
                </td>
            </tr>
            <tr>
                <td>
                    <br />
                </td>
            </tr>
            <tr>
                <td colspan="7" align="center" style="font-size:large">
                    BIỂU ĐỒ SO SÁNH LƯỢNG THỨC ĂN THEO NGÀY TUỔI CỦA TÔM
                </td>
            </tr>
            <tr>
                <td colspan="7">
                    <dxchartsui:WebChartControl ID="wcFoodReport" runat="server" Width="960px" Height="200px"
                        PaletteName="Concourse">
                        <seriestemplate><ViewSerializable>
                        <cc1:SideBySideBarSeriesView></cc1:SideBySideBarSeriesView>
                        </ViewSerializable>
                        <LabelSerializable>
                        <cc1:SideBySideBarSeriesLabel LineVisible="True">
                        <FillStyle><OptionsSerializable>
                        <cc1:SolidFillOptions></cc1:SolidFillOptions>
                        </OptionsSerializable>
                        </FillStyle>
                        </cc1:SideBySideBarSeriesLabel>
                        </LabelSerializable>
                        <PointOptionsSerializable>
                        <cc1:PointOptions></cc1:PointOptions>
                        </PointOptionsSerializable>
                        <LegendPointOptionsSerializable>
                        <cc1:PointOptions></cc1:PointOptions>
                        </LegendPointOptionsSerializable>
                        </seriestemplate>
                        <fillstyle><OptionsSerializable>
                        <cc1:SolidFillOptions></cc1:SolidFillOptions>
                        </OptionsSerializable>
                        </fillstyle>
                        <seriesserializable>
                        <cc1:Series LegendText="Thực tế" Name="actualValue">
                            <viewserializable>
                                <cc1:LineSeriesView>
                                </cc1:LineSeriesView>
                            </viewserializable>
                            <labelserializable>
                                <cc1:PointSeriesLabel LineVisible="True">
                                    <fillstyle>
                                        <optionsserializable>
                                            <cc1:SolidFillOptions />
                                        </optionsserializable>
                                    </fillstyle>
                                </cc1:PointSeriesLabel>
                            </labelserializable>
                            <pointoptionsserializable>
                                <cc1:PointOptions>
                                </cc1:PointOptions>
                            </pointoptionsserializable>
                            <legendpointoptionsserializable>
                                <cc1:PointOptions>
                                </cc1:PointOptions>
                            </legendpointoptionsserializable>
                        </cc1:Series>
                        <cc1:Series LegendText="Chuẩn" Name="standardValue">
                            <viewserializable>
                                <cc1:LineSeriesView>
                                </cc1:LineSeriesView>
                            </viewserializable>
                            <labelserializable>
                                <cc1:PointSeriesLabel LineVisible="True">
                                    <fillstyle>
                                        <optionsserializable>
                                            <cc1:SolidFillOptions />
                                        </optionsserializable>
                                    </fillstyle>
                                </cc1:PointSeriesLabel>
                            </labelserializable>
                            <pointoptionsserializable>
                                <cc1:PointOptions>
                                </cc1:PointOptions>
                            </pointoptionsserializable>
                            <legendpointoptionsserializable>
                                <cc1:PointOptions>
                                </cc1:PointOptions>
                            </legendpointoptionsserializable>
                        </cc1:Series>
                        <cc1:Series LegendText="Mẫu" Name="sampleValue">
                            <viewserializable>
                                <cc1:LineSeriesView>
                                </cc1:LineSeriesView>
                            </viewserializable>
                            <labelserializable>
                                <cc1:PointSeriesLabel LineVisible="True">
                                    <fillstyle>
                                        <optionsserializable>
                                            <cc1:SolidFillOptions />
                                        </optionsserializable>
                                    </fillstyle>
                                </cc1:PointSeriesLabel>
                            </labelserializable>
                            <pointoptionsserializable>
                                <cc1:PointOptions>
                                </cc1:PointOptions>
                            </pointoptionsserializable>
                            <legendpointoptionsserializable>
                                <cc1:PointOptions>
                                </cc1:PointOptions>
                            </legendpointoptionsserializable>
                        </cc1:Series>
                    </seriesserializable>
                        <diagramserializable>
                        <cc1:XYDiagram>
                            <axisx visibleinpanesserializable="-1">
                                <range sidemarginsenabled="True" />
                            </axisx>
                            <axisy visibleinpanesserializable="-1">
                                <range sidemarginsenabled="True" />
                            </axisy>
                        </cc1:XYDiagram>
                    </diagramserializable>
                    </dxchartsui:WebChartControl>
                </td>
            </tr>
        </table>
    </center>
</asp:Content>
<asp:Content ID="Content2" runat="server" ContentPlaceHolderID="head">

    <script type="text/javascript" src="../../js/jquery-latest.js"></script>

    <script type="text/javascript">
        $(document).ready(function() {

            $("ul.subnav").parent().append("<span></span>"); //Only shows drop down trigger when js is enabled - Adds empty span tag after ul.subnav

            $("ul.topnav li span").click(function() { //When trigger is clicked...

                //Following events are applied to the subnav itself (moving subnav up and down)
                $(this).parent().find("ul.subnav").slideDown('fast').show(); //Drop down the subnav on click

                $(this).parent().hover(function() {
                }, function() {
                    $(this).parent().find("ul.subnav").slideUp('slow'); //When the mouse hovers out of the subnav, move it back up
                });
                ;
                //Following events are applied to the trigger (Hover events for the trigger)
            }).hover(function() {
                $(this).addClass("subhover"); //On hover over, add class "subhover"
            }, function() {	//On Hover Out
                $(this).removeClass("subhover"); //On hover out, remove class "subhover"
            });

        });
    </script>

    <style type="text/css">
        .style1
        {
            width: 178px;
        }
        .style3
        {
            width: 172px;
        }
        .style4
        {
            width: 60px;
        }
        .style5
        {
            width: 58px;
        }
    </style>
</asp:Content>
